<template>
    <div id="isshow">
      <button v-on:click="toggle">显示隐藏切换</button>
      <div v-show="isshow">div的值</div>
    </div>
</template>

<script>
    export default {
        name: "vshow",
      data(){
          return{
            isshow:true
          }
      },
      methods:{
        toggle:function () {
          this.isshow = !this.isshow;
        }
      }
    }
</script>

<style scoped>

</style>
